package observer;

public class ObserverEntity extends Observer {
    public ObserverEntity(Subject subject) {
        super(subject);
    }

    @Override
    public void update() {
        System.out.println("我是"+name+"，subject 执行了，触发了我 observer 的 update");
    }
}
